# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=timg
pkgver=0.9.8
pkgrel=0
pkgdesc="24-Bit color image viewer for terminal"
url="https://github.com/hzeller/timg"
arch="all"
options="!check" # package doesn't have test
license="GPL-2.0-only"
makedepends="libwebp-dev graphicsmagick-dev freetype-dev xz-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/hzeller/timg/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"/src

build() {
	make
}

package() {
	install -Dm755 timg "$pkgdir"/usr/bin/timg
}

sha512sums="b9d1bec542d3e2620baece1d90d33af00de0af8c4544aecf109ce9ea42138ad6693a6683cb39cfa4acbd3aad45d3773f47a8c715c85c57ad983327259bc615d7  timg-0.9.8.tar.gz"
